<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

        <tr>
          <td colspan="7"> <div align="center" class="boldtext style7"><strong>Manage Movies </strong></div></td>
          </tr>
        <tr>
          <td width="10%" class="boldtext style7">Delete</td>
          <td width="10%" class="boldtext style9">Movie name </td>
          <td width="10%" class="boldtext style9">Director </td>
          <td width="10%" class="boldtext style9">Producer Company</td>
          <td width="10%" class="boldtext style9">Actors</td>
          <td width="10%" class="boldtext style9">Movie Description</td>
           <td width="10%" class="boldtext style9">Modify</td>
        </tr>
		<c:forEach items="${requestScope.movieArr}" var="movie" >
        <tr>
          <td height="32">
		  <input type="button" name="delete" value="delete"  
		  onClick="deleteMovie('<c:out value="${movie.movieId}"/>')">
		  </td>
          <td><c:out value="${movie.movieName}"/></td>
          <td><c:out value="${movie.directorName}" /></td>
          <td><c:out value="${movie.producerCompany}" /></td>
		  <c:set var="actorArr" value="${movie.actors}" />
          <td>
		  <c:forEach var="actor" items="${actorArr}"  varStatus="status" >
		  <c:out value="${actor.firstName}" />
		  &nbsp;
		   <c:out value="${actor.lastName}" /> ,
		 
		  </c:forEach>
         
		  </td>
          <td><c:out value="${movie.movieDescription}" /></td>
          <td><input type="submit" name="Submit" value="Modify" 
		  onclick="modifyMovie('<c:out value="${movie.movieId}"/>')">
		  </td>
		  </tr>
		</c:forEach>
		 <tr>
          <td height="32" colspan="7"><div align="center">
            <input type="submit" name="Submit" value="Add New Movie" onclick="addMovie()" >
          </div></td>
        </tr>
